package odgs.app.server;

import javax.swing.JFrame;
import javax.swing.JSplitPane;
import javax.swing.JTextArea;

import odgs.app.common.LogViewUI;

import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartPanel;
import org.jfree.data.general.DefaultPieDataset;


/**
 *
 * @author  user
 */
public class ServerMainFrameUI extends JFrame {
    
    /** Creates new form LocalFileSystemViewUI */
    public ServerMainFrameUI() {
        setSize(1000,830);
        setTitle("Grid Server");
        initComponents();
    	setVisible(true);
    }

    public static void main(String[] args) {
       new ServerMainFrameUI();
	}
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">                          
    private void initComponents() {
        jSplitPane1 = new javax.swing.JSplitPane();
        jPanel1 = new javax.swing.JPanel();
        jSplitPane2 = new javax.swing.JSplitPane();
        jPanel3 = new javax.swing.JPanel();
        jSplitPane3 = new javax.swing.JSplitPane();
        gridNodeGraph = new StateGraphUI("GridNode State Graph");
        gridNdoeTable = new GridNodeStateTableUI();
        jPanel4 = new javax.swing.JPanel();
        jSplitPane4 = new javax.swing.JSplitPane();
        gridStateGraph = new StateGraphUI("Grid System Graph");
        exeplrerTable = new ServerExplorerTableUI();
        logView = new LogViewUI("LogView");

        setLayout(new java.awt.BorderLayout());

        jSplitPane1.setDividerLocation(600);
        jSplitPane1.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
        jPanel1.setLayout(new java.awt.BorderLayout());

        jSplitPane2.setDividerLocation(300);
        jSplitPane2.setForeground(new java.awt.Color(0, 0, 0));
        jSplitPane2.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
        jPanel3.setLayout(new java.awt.BorderLayout());

        jSplitPane3.setDividerLocation(300);
//        javax.swing.GroupLayout gridNodeGraphLayout = new javax.swing.GroupLayout(gridNodeGraph);
//        gridNodeGraph.setLayout(gridNodeGraphLayout);
//        gridNodeGraphLayout.setHorizontalGroup(
//            gridNodeGraphLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//            .addGap(0, 299, Short.MAX_VALUE)
//        );
//        gridNodeGraphLayout.setVerticalGroup(
//            gridNodeGraphLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//            .addGap(0, 297, Short.MAX_VALUE)
//        );
        jSplitPane3.setLeftComponent(gridNodeGraph);

//        javax.swing.GroupLayout gridNdoeTableLayout = new javax.swing.GroupLayout(gridNdoeTable);
//        gridNdoeTable.setLayout(gridNdoeTableLayout);
//        gridNdoeTableLayout.setHorizontalGroup(
//            gridNdoeTableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//            .addGap(0, 675, Short.MAX_VALUE)
//        );
//        gridNdoeTableLayout.setVerticalGroup(
//            gridNdoeTableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//            .addGap(0, 297, Short.MAX_VALUE)
//        );
        jSplitPane3.setRightComponent(gridNdoeTable);

        jPanel3.add(jSplitPane3, java.awt.BorderLayout.CENTER);

        jSplitPane2.setTopComponent(jPanel3);

        jPanel4.setLayout(new java.awt.BorderLayout());

        jSplitPane4.setDividerLocation(300);
//        javax.swing.GroupLayout gridStateGraphLayout = new javax.swing.GroupLayout(gridStateGraph);
//        gridStateGraph.setLayout(gridStateGraphLayout);
//        gridStateGraphLayout.setHorizontalGroup(
//            gridStateGraphLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//            .addGap(0, 299, Short.MAX_VALUE)
//        );
//        gridStateGraphLayout.setVerticalGroup(
//            gridStateGraphLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//            .addGap(0, 291, Short.MAX_VALUE)
//        );
        jSplitPane4.setLeftComponent(gridStateGraph);

//        javax.swing.GroupLayout exeplrerTableLayout = new javax.swing.GroupLayout(exeplrerTable);
//        exeplrerTable.setLayout(exeplrerTableLayout);
//        exeplrerTableLayout.setHorizontalGroup(
//            exeplrerTableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//            .addGap(0, 675, Short.MAX_VALUE)
//        );
//        exeplrerTableLayout.setVerticalGroup(
//            exeplrerTableLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
//            .addGap(0, 291, Short.MAX_VALUE)
//        );
        jSplitPane4.setRightComponent(exeplrerTable);

        jPanel4.add(jSplitPane4, java.awt.BorderLayout.CENTER);

        jSplitPane2.setRightComponent(jPanel4);

        jPanel1.add(jSplitPane2, java.awt.BorderLayout.CENTER);

        jSplitPane1.setTopComponent(jPanel1);

        jSplitPane1.setRightComponent(logView);

        add(jSplitPane1, java.awt.BorderLayout.CENTER);
        
        jSplitPane1.setDividerSize(5);
        jSplitPane2.setDividerSize(5);
        jSplitPane3.setDividerSize(5);
        jSplitPane4.setDividerSize(5);
    }// </editor-fold>                        
    
    
    // Variables declaration - do not modify                     
    public ServerExplorerTableUI exeplrerTable;
    public GridNodeStateTableUI gridNdoeTable;
    public StateGraphUI gridNodeGraph;
    public StateGraphUI gridStateGraph;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JSplitPane jSplitPane1;
    private javax.swing.JSplitPane jSplitPane2;
    private javax.swing.JSplitPane jSplitPane3;
    private javax.swing.JSplitPane jSplitPane4;
    public LogViewUI logView;
    // End of variables declaration                   
}


